package com.sp.common.enu;


/**
 *
 * @Author:daiqingshen
 * @Date:14:08 2019-07-03
 * 返回参数枚举类
 */
public enum ReturnCodeEnum {

    /**
     * 成功
     */
    SUCCESS("200", "success"),
    //请求参数相关
    PARAM_MISS("1001", "参数缺失"),
    PARAM_ERROR("1002", "参数错误"),
    CODE_EXIST("1003", "编码已存在"),
    DATA_RESTRICT("1004", "数据包超过限制"),
    ALL_FAILED("1005", "全部失败"),
    PORTION_FAILED("1006", "部分失败"),
    ALREADY_DOWNLOAD("1007", "已被下载"),
    //全局异常
    SERVER_ABNORMAL("2001", "系统繁忙，请稍后再试"),
    SERVER_ERROR("2002", "系统繁忙，请稍后再试"),
    NETWORK_ERROR("2003", "网络异常"),
    HANDLE_FAIL("2004","业务处理失败"),
    POWER_FAIL("2005","权限不足"),
    
    ;

    /**
     * 返回码
     */
    private String retCode;

    /**
     * 返回描述
     */
    private String retDesc;

    ReturnCodeEnum(String retCode, String retDesc) {
        this.retCode = retCode;
        this.retDesc = retDesc;
    }

    public String getRetCode() {
        return retCode;
    }


    public String getRetDesc() {
        return retDesc;
    }

}
